package cn.itcast.domain;


import java.util.Date;
import java.util.List;

public class User {

  private Integer id; //用户id
  private String username; //用户姓名
  private Date birthday; //生日
  private String sex; //性别
  private String address; //地址
  private String pwd;
  private String password; //密码

  //建立实体类之间的关联关系,一个用户可以有多个订单
  private List<Orders> ordersList;

  public void setBirthday(Date birthday) {
    this.birthday = birthday;
  }

  public List<Orders> getOrdersList() {
    return ordersList;
  }

  public void setOrdersList(List<Orders> ordersList) {
    this.ordersList = ordersList;
  }

  public long getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }


  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }


  public Date getBirthday() {
    return birthday;
  }

  public void setBirthday(java.sql.Date birthday) {
    this.birthday = birthday;
  }


  public String getSex() {
    return sex;
  }

  public void setSex(String sex) {
    this.sex = sex;
  }


  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }


  public String getPwd() {
    return pwd;
  }

  public void setPwd(String pwd) {
    this.pwd = pwd;
  }


  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  @Override
  public String toString() {
    return "User{" +
            "id=" + id +
            ", username='" + username + '\'' +
            ", birthday=" + birthday +
            ", sex='" + sex + '\'' +
            ", address='" + address + '\'' +
            ", pwd='" + pwd + '\'' +
            ", password='" + password + '\'' +
            ", ordersList=" + ordersList +
            '}';
  }
}
